<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"[]>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Evaluation Results</title>
        <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" />
        <!--[if IE 6]><link rel="stylesheet" href="../css/style.ie6.css" type="text/css" media="screen" /><![endif]-->
        <!--[if IE 7]><link rel="stylesheet" href="../css/style.ie7.css" type="text/css" media="screen" /><![endif]-->
        <sj:head jqueryui="true" jquerytheme="south-street" compressed="false"/>
        <!--        <script type="text/javascript" src="../js/jquery.js"></script>-->
        <script type="text/javascript" src="../js/script.js"></script>


        <script src="../js/jquery.validationEngine-en.js" type="text/javascript" charset="utf-8"></script>
        <script src="../js/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
        <link rel="stylesheet" href="../css/validationEngine.jquery.css" type="text/css"/>

        <script type="text/javascript" src="../js/instructorSubjectList.js"></script>

    </head>
    <body>
        <div id="art-main">
            <div class="cleared reset-box"></div>
            <%-- navigation and header --%>
            <jsp:include page="../components/headerComponent.jsp"/>


            <div class="cleared reset-box"></div>
            <div class="art-box art-sheet">
                <div class="art-box-body art-sheet-body">
                    <div class="art-layout-wrapper">
                        <div class="art-content-layout">
                            <div class="art-content-layout-row">
                                <div class="art-layout-cell art-content">
                                    <div class="art-box art-post">
                                        <div class="art-box-body art-post-body">
                                            <div class="art-post-inner art-article">
                                                <!--                                                <h2 class="art-postheader tce-green-bg tce-white-font tce-clear-margin tce-padding">
                                                                                                    List of Subjects for Evaluation
                                                                                                </h2>-->
                                                <div class="cleared"></div>
                                                <s:url id="remotesubjecturl" action="view~instructors evaluated subjects"/>
                                                <sjg:grid
                                                    id="subjectGrid"
                                                    name="subjectGrid"
                                                    href="%{remotesubjecturl}"
                                                    caption="List of Instructor's Evaluated Subjects"
                                                    dataType="json"
                                                    gridModel="instructorEvaluatedSubjectList"
                                                    rownumbers="false"
                                                    loadingText="Requesting Data..."
                                                    onSelectRowTopics="rowselect"
                                                    multiselect="true"
                                                    width="650" 
                                                    shrinkToFit="false"
                                                    groupField="['subjectOfferingFullName']"
                                                    groupColumnShow="[false]"
                                                    groupCollapse="true"
                                                    groupText="['<b>{0} - {1} Evaluated Subject(s)</b>']"
                                                    >

                                                    <sjg:gridColumn name="subjectScheduleID"
                                                                    index="subjectScheduleID"
                                                                    title="subjectScheduleID"
                                                                    hidden="true"
                                                                    sortable="false"
                                                                    key="true"
                                                                    />

                                                    <sjg:gridColumn name="subjectOfferingFullName"
                                                                    index="subjectOfferingFullName"
                                                                    title="Subject Offering"
                                                                    editable="false"
                                                                    sortable="false"
                                                                    width="200"
                                                                    />

                                                    <sjg:gridColumn name="subjectCode"
                                                                    index="subjectCode"
                                                                    title="Subject"
                                                                    editable="false"
                                                                    sortable="false"
                                                                    width="70"
                                                                    align="center"
                                                                    />
                                                    <sjg:gridColumn name="subjectDescription"
                                                                    index="subjectDescription"
                                                                    title="Description"
                                                                    editable="false"
                                                                    sortable="false"
                                                                    width="185"
                                                                    />
                                                    <sjg:gridColumn name="subjectSchedule"
                                                                    index="subjectSchedule"
                                                                    title="Schedule"
                                                                    editable="false"
                                                                    sortable="false"
                                                                    width="155"
                                                                    />

                                                    <sjg:gridColumn name="totalMean"
                                                                    index="totalMean"
                                                                    title="Total Mean"
                                                                    sortable="false"
                                                                    editable="false"
                                                                    align="center"
                                                                    width="80"
                                                                    />
                                                    <sjg:gridColumn name="qualitativeInterpretation"
                                                                    index="qualitativeInterpretation"
                                                                    title="Qualitative"
                                                                    sortable="false"
                                                                    editable="false"
                                                                    width="109"
                                                                    />
                                                    <sjg:gridColumn name="instructorFullName"
                                                                    index="instructorFullName"
                                                                    title="Instructor"
                                                                    editable="false"
                                                                    sortable="false"
                                                                    width="150"
                                                                    />

                                                </sjg:grid>
                                                <sj:dialog autoOpen="false" closeOnEscape="true" modal="true" id="messageDialog" title="Teacher-Class Evaluation System"
                                                           buttons="{
                                                           'Close':function() {  
                                                           $('#messageDialog').dialog('close');
                                                           }
                                                           }">
                                                </sj:dialog>
                                                <form id="printSubjectForm" method="POST" action="print~instructors evaluated subjects" class="tce-big-margin-top">
                                                    <s:hidden id="subjectScheduleIDs" name="subjectScheduleID" />
                                                </form>
                                                <sj:submit id="grid_multi_getselectedbutton" value="Print" onClickTopics="getselectedids" button="true"/>
                                            </div>
                                            <div class="cleared"></div>
                                        </div>
                                    </div>
                                    <div class="cleared"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="cleared"></div>
                    <%-- footer --%>
                    <jsp:include page="../components/footerComponent.jsp"/>
                    <div class="cleared"></div>
                </div>
            </div>
            <div class="cleared"></div>
        </div>
        <%--  <sj:dialog name="subjectEvaluationDialog" 
                     id="subjectEvaluationDialog" 
                     modal="true" 
                     autoOpen="false"
                     position="0, 0" 
                     closeOnEscape="false"
                     title="Teacher Class Evaluation"
                 buttons="{
                 'Close':function() {  $('#subjectEvaluationDialog').dialog('close'); }
                 }">
              
          </sj:dialog>--%>
    </body>
</html>